package com.twu.biblioteca.tools;

import com.twu.biblioteca.Library.Movie;

import java.util.ArrayList;
import java.util.List;

public class MovieFactory {

    public static List<Movie> initMovies() {
        List<Movie> movies = new ArrayList<Movie>();

        Movie movie1 = new Movie("3 idiots");
        movie1.setYear(2009);
        movie1.setDirector("Rajkumar Hirani");
        movie1.setAvailable(true);
        movie1.setRating(9);
        movies.add(movie1);

        Movie movie2 = new Movie("Forrest Gump");
        movie2.setYear(1995);
        movie2.setDirector("Robert Zemeckis");
        movie2.setRating(9);
        movie2.setAvailable(true);
        movies.add(movie2);

        Movie movie3 = new Movie("Avatar");
        movie3.setYear(2009);
        movie3.setDirector("James Cameron");
        movie3.setAvailable(false);
        movie3.setRating(9);
        movie3.setBorrower("Davide");
        movies.add(movie3);

        return movies;

    }
}
